package com.nbpt;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class lianxiwomen extends Activity {

    private EditText btn1;
    private EditText btn2;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lianxiwomen);

        btn1 = findViewById(R.id.btn1);
        btn2 = findViewById(R.id.btn2);

        btn1.setFocusable(false);
        btn2.setFocusable(false);
    }





    public void dianhuaclick(View view){
//        Intent intent =new Intent(Intent.ACTION_DIAL); //跳转到系统拨号界面
//        startActivity(intent);

        Intent intents =new Intent(Intent.ACTION_CALL);
        Uri data =Uri.parse("tel:13505741234");
        intents.setData(data);
        startActivity(intents);
    }

    public void xingxiclick(View view){
        Uri data =Uri.parse("smsto:13505741234");
        Intent intent =new Intent(Intent.ACTION_SENDTO,data);//设置短信内容
        intent.putExtra("sms_body","This is a sample sms.");
        startActivity(intent);
    }

    public void wangyeclick(View view){
        Intent intents = new Intent(Intent.ACTION_VIEW);
        intents.setData(Uri.parse("http://www.nbpt.edu.cn"));
        startActivity(intents);

    }
}
